package com.turtle3d.formallanguage;

import javax.vecmath.Matrix4f;
import javax.vecmath.Point3f;

import com.turtle3d.formallanguage.symbol.Symbol;



public class VisualSymbol
{
	private int step=0;
	private Symbol symbol;
	private Matrix4f transform;
	public VisualSymbol(Symbol symbol, Matrix4f transform, int step)
	{
		super();
		this.step = step;
		this.symbol = symbol;
		this.transform = transform;
	}
	public VisualSymbol(Symbol symbol, Matrix4f transform)
	{
		super();
		this.symbol = symbol;
		this.transform = transform;
	}
	public Symbol getSymbol()
	{
		return symbol;
	}
	public Matrix4f getTransform()
	{
		return transform;
	}
	
	public String toString(){
		Point3f p = new Point3f();
		transform.transform(p);
		
		return symbol+" "+p;
	}
	public int getDepth()
	{
		return step;
	}
}
